<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragment/header::head"></div>


<body>
<div th:replace="fragment/sidebar::side"></div>

<div class="card-body">

    <table class="table table-bordered">
        <thead>
        <tr>
            <th>序号</th>
            <th>工单类型</th>
            <th>对应客服</th>
            <th>优先级</th>
            <th>状态</th>
            <th>录入类型</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="wo , rowInfo : ${list}">
            <td class="table-info" th:text="${rowInfo.count}"> 1 </td>
            <td class="table-warning" th:text="${wo.getTitle()}"> Herman Beck </td>
            <td class="table-danger" th:text="${wo.getCclist()}"> Photoshop </td>
            <td class="table-success" th:text="${wo.getPriority()}"> $ 77.99 </td>
            <td class="table-success" th:text="${wo.getState()}"> $ 77.99 </td>
            <td class="table-primary" th:text="${wo.getChannel()}"> May 15, 2015 </td>
            <td class="table-primary" th:text="${wo.getCreatetime()}"> May 15, 2015 </td>
            <td class="table-info">
                <a th:href="@{/workOrder/check(id=${wo.id},current=${#request.getParameter('current')},size=10)}">查看详情</a>
                <a th:href="@{/workOrder/deal(id=${wo.id},current=${#request.getParameter('current')},size=10)}">接单</a>
            </td>
        </tr>
        </tbody>
    </table>
    <a th:href="@{/workOrder/index2(current=1,size=10)}">首页</a>
    <a th:href="@{/workOrder/index2(current=${i},size=10)}" th:each="i : ${#numbers.sequence(1,pagesCount)}"><span th:text="${i}" style="border: 1px solid #e3e3e3;height: 16px;width: 16px;text-align: center;vertical-align: middle;padding-left: 5px;padding-right: 5px;margin-left: 10px">1</span></a>
    <a th:href="@{/workOrder/index2(current=${pagesCount},size=10)}">尾页</a>
</div>

<div th:replace="fragment/footer::foot"></div>

</body>
